package com.h2n.framework.composer;

import org.zkoss.zul.Window;
import org.zkoss.zul.Button;
import org.zkoss.zk.ui.event.Event;
import org.zkoss.zk.ui.Executions;

/**
 * Created by IntelliJ IDEA.
 * User: DUNGCT
 * Date: Oct 8, 2009
 * Time: 2:11:13 PM
 * To change this template use File | Settings | File Templates.
 */
public class JobsComposer extends AbstractPageComposer {
    Window JobsForm;
    Button btnSearch;
    Button btnCreate;
    Button btnEdit;
    Button btnDel;

    public void onClick$btnCreate(Event e) throws Exception{
        final Window win = (Window) Executions.createComponents(
				"JobsAdd.zul", null, null);
		win.setMaximizable(false);
		win.doModal();
    }

    public void onClick$btnEdit(Event e) throws Exception{
        final Window win = (Window) Executions.createComponents(
				"JobsEdit.zul", null, null);
		win.setMaximizable(false);
		win.doModal();
    }
}
